import QtQuick 2.10
import QtQuick.Window 2.10

import FileInfo 1.0

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")


    FileInfo{
        id: info
        Component.onCompleted: {
            console.log(String("name:%1 isFile:%2 size:%3")
                        .arg(info.get(0).fileName)
                        .arg(info.get(0).isFile)
                        .arg(info.get(0).size));
        }
    }

    Text{
        text:String("name:%1 isFile:%2 size:%3")
        .arg(info.get(0).fileName)
        .arg(info.get(0).isFile)
        .arg(info.get(0).size);
    }
}
